import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class TestText extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 100,
      width: 100,
      color: Colors.blue.withOpacity(.4),
      child: Text(
          '测试',
        style: TextStyle(
          color: Colors.red,
          fontSize: 12,
          fontWeight: FontWeight.bold,
          fontStyle: FontStyle.italic,
        ),
        overflow: TextOverflow.ellipsis,
        softWrap: true,
      ),
    );
  }
}
